﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Forms/FormAdmin.master" AutoEventWireup="true" CodeBehind="NoticeOfAbsence.aspx.cs" Inherits="HRdex_Final.Forms.WebForm4" %>
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div align="center">
    
        <table style="border-style: double; border-color: #0066FF; width:100%; background-color: #FFFFFF;">
            <tr>
                <td style="width: 181px">
                    Notice of Absent No:<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                        runat="server" ControlToValidate="txtNo" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtNo" runat="server" Width="158px"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time:&nbsp;
                    <asp:Label ID="lblpubDate" runat="server" style="text-align: right"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 181px">
                    From<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtName" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Width="345px" ReadOnly="True"></asp:TextBox>
                    &nbsp;&nbsp;</td>
            </tr>
            <tr>
                <td style="width: 181px">
                    To<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="ddlToEmp" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:DropDownList ID="ddlToEmp" runat="server" DataSourceID="ToEmp" 
                        DataTextField="Name" DataValueField="EmployeeID" Height="29px" 
                        Width="358px" AutoPostBack="True" onload="Page_Load" 
                        onselectedindexchanged="ddlToEmp_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="ToEmp" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                        SelectCommand="SELECT EmployeeID, LastName + ', ' + FirstName + ' ' + MiddleName AS Name FROM formEmployees WHERE (UserLevelID = @UserLevel)">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="4" Name="UserLevel" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 181px">
                    Position<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="ddlPos" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:DropDownList ID="ddlPos" runat="server" DataSourceID="Pos" 
                        DataTextField="catPositionsName" DataValueField="catPositionsID" Height="29px" 
                        Width="358px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="Pos" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                        SelectCommand="SELECT * FROM [catPositions]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 181px">
                    Department<asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
                        runat="server" ControlToValidate="ddlDept" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:DropDownList ID="ddlDept" runat="server" DataSourceID="Dept" 
                        DataTextField="DepartmentName" DataValueField="DeptID" Height="29px" 
                        Width="358px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="Dept" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                        SelectCommand="SELECT * FROM [catDepartment]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 181px">
                    Date&amp;Time<asp:RequiredFieldValidator ID="RequiredFieldValidator7" 
                        runat="server" ControlToValidate="txtDate" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                
                    <asp:TextBox ID="txtDate" runat="server" Width="223px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtDate_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="txtDate">
                    </asp:CalendarExtender>
                    <asp:DropDownList ID="ddlFHour" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                    </asp:DropDownList>
&nbsp;<asp:DropDownList ID="ddlFMin" runat="server">
                        <asp:ListItem>00</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>45</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlTHour" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlTmin" runat="server">
                        <asp:ListItem>00</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>45</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 181px">
                    Reason<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ControlToValidate="txtReason" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtReason" runat="server" Height="60px" TextMode="MultiLine" 
                        Width="424px"></asp:TextBox>
                    <br />
                </td>
            </tr>
            <tr>
                <td style="width: 181px">
                    <asp:Label ID="Label1" runat="server" Text="Explanation"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                        ControlToValidate="txtExplanation" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtExplanation" runat="server" Height="59px" TextMode="MultiLine" 
                        Width="424px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align: right;" colspan="2">
                    <asp:Label ID="lblRemarks" runat="server" style="text-align: right">Remarks</asp:Label>
            <asp:DropDownList ID="ddlApprovalFac" runat="server">
                <asp:ListItem>Denied</asp:ListItem>
                <asp:ListItem>Approved</asp:ListItem>
            </asp:DropDownList>
                </td>
                </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                        Text="Submit" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="lblConfirmationMessage" runat="server" style="text-align: right" 
                        ForeColor="Blue"></asp:Label>
                </td>
            </tr>

        </table>
    <table>
    <tr>
        <td>
                    &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>
</div>
</asp:Content>
